//
//  REBaseViewController.m
//  ReelEp
//
//  Created by 孙强 on 2024/7/8.
//  Copyright © 2024 RE. All rights reserved.
//

#import "REBaseViewController.h"

@interface REBaseViewController ()

@end

@implementation REBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
//    [self setBackBtn];
    self.edgesForExtendedLayout=UIRectEdgeBottom;
    self.view.backgroundColor = [UIColor whiteColor];
  self.navigationController.interactivePopGestureRecognizer.delegate = (id)self;
    
//    self.view.backgroundColor = COLOR_BG;

    WEAKSELF;
    _navigationView = [[RENavigationView alloc] initWithFrame:CGRectMake(0, 0, GJScreenW, NavigationHeight)];
    [self.view addSubview:_navigationView];
    _navigationView.title = @"";
    _navigationView.backBlock = ^{
        [weakSelf.navigationController popViewControllerAnimated:YES];
    };

    
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES animated:NO];

}
- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];

}
//- (RERefreshGifHeader *)refreshGifHeaderLottie
//{
//    if (!_refreshGifHeaderLottie)
//    {
//        _refreshGifHeaderLottie = [RERefreshGifHeader new];
//        [_refreshGifHeaderLottie setJsonName:@"Animation_loading.json"];
//
//    }
//    return _refreshGifHeaderLottie;
//}


- (void)toLogin{
//    if (![GETCURRENTCONTROLLER isKindOfClass:[RELoginViewController class]]) {
//        RELoginViewController *vc = [RELoginViewController new];
//        PUSHCONTROLLER(vc);
//    }
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
